package com.acceptable.qucun.file.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

@TableName("file_mime")
public class FileMime extends Model<FileMime> {
    private static final long serialVersionUID=1L;

    @TableId(value = "mime_id", type = IdType.AUTO)
    private Integer mimeId;

    @TableField("mime")
    private String mime;

    @TableField("ext")
    private String ext;

    @TableField("type_id")
    private Integer typeId;

    public Integer getMimeId() {
        return mimeId;
    }

    public void setMimeId(Integer mimeId) {
        this.mimeId = mimeId;
    }

    public String getMime() {
        return mime;
    }

    public void setMime(String mime) {
        this.mime = mime;
    }

    public String getExt() {
        return ext;
    }

    public void setExt(String ext) {
        this.ext = ext;
    }

    public Integer getTypeId() {
        return typeId;
    }

    public void setTypeId(Integer typeId) {
        this.typeId = typeId;
    }

    @Override
    public String toString() {
        return "FileMime{" +
                "mimeId=" + mimeId +
                ", mime='" + mime + '\'' +
                ", ext='" + ext + '\'' +
                '}';
    }
}
